<?php
get_header ();

get_sidebar ();

if (! defined ( 'ABSPATH' ))
	exit (); // Exit if accessed directly
		         
// while ( have_posts() ) : the_post();
global $post, $woocommerce, $product;
?>
<div class="single-content">
	<DIV style="HEIGHT: 360px;" class="wrap picshow">
		<!--大图轮换区-->
		<DIV id=picarea>
			<DIV style="WIDTH: 295px; HEIGHT: 295px; OVERFLOW: hidden">
				<DIV style="OVERFLOW: hidden" id=bigpicarea>
					<P class=bigbtnPrev>
						<SPAN id=big_play_prev></SPAN>
					</P>
					<?php
					$attachment_ids = $product->get_gallery_attachment_ids ();
					$quantity_big_image = 1;
					
					if ($attachment_ids) {
						foreach ( $attachment_ids as $attachment_id ) {
							$image_link_big_pic = wp_get_attachment_url ( $attachment_id );
							?>
					<DIV id=image_xixi-0 <?php echo $quantity_big_image; ?> class=image>
						<IMG alt="" src="<?php echo $image_link_big_pic; ?>" width=295
							height=295>
						<DIV class=word>
							<H3>台球厅的生活</H3>
						</DIV>
					</DIV>
					<?php
							$quantity_big_image ++;
						}
					}
					?>
					<P class=bigbtnNext>
						<SPAN id=big_play_next></SPAN>
					</P>
				</DIV>
			</DIV>
			<DIV id=smallpicarea>
				<DIV id=thumbs>
					<div class="first btnPrev">
						<IMG id=play_prev src="wp-content/themes/website1/images/left.png">
					</div>
					<?php
					$quantity_thumb = 1;
					
					if ($attachment_ids) {
						foreach ( $attachment_ids as $attachment_id ) {
							$image_link = wp_get_attachment_url ( $attachment_id );
							?>
					<div class=slideshowItem>
						<A id=thumb_xixi-0 <?php echo $quantity_thumb; ?> href="#">
							<IMG src="<?php echo $image_link; ?>" width=55 height=55>
						</A>
					</div>
					<?php
							$quantity_thumb ++;
						}
					}
					?>
					<div class="last btnNext">
						<IMG id=play_next
							src="wp-content/themes/website1/images/right.png">
					</div>
				</DIV>
			</DIV>
		</DIV>
		<SCRIPT>
                    var target = ["xixi-01","xixi-02","xixi-03","xixi-04"];
                    </SCRIPT>
	</DIV>

	<div class="single-text">
                    	<?php
																					// do_action ( 'woocommerce_before_single_product_summary' );
																					do_action ( 'woocommerce_single_product_summary' );
																					
																					// endwhile;
																					?>
	</div>
	<div class="single-summary">
		<?php do_action ('woocommerce_after_single_product_summary' ); ?>
	</div>
</div>

<!-- single-content -->



</div>
</div>
</body>
</html>